﻿using UnityEngine;
using Zenject;

public class EnemyDetectedPlayer : FSMDecideMB
{
    [SerializeField] private float distance = 1f;
    [Inject] private GameManager _gameManager;

    public override bool Decide()
    {
        return Vector3.Distance(transform.position, _gameManager.currentPlayer.transform.position) <
               distance;
    }
}